package com.whfc.iot.mach.entity;

import com.whfc.iot.mach.constant.MsgConst;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
public class MachMsg0x0A extends MachMsg {

    public MachMsg0x0A() {
        this.setCmd(MsgConst.UPSTREAM_CMD_0x0A);
    }

    /**
     * 时间
     */
    private Date time;

    /**
     * 压力
     */
    private Double pressure;

    /**
     * 油位高度
     */
    private Integer oilPos;

    /**
     * 温度
     */
    private Double temp;

    @Override
    public int getDataLength() {
        return 6 + 4 + 4;
    }
}
